 <!-- Main Header -->
<header class="main-header" style="height: 50px;">
    <nav class="navbar navbar-static-top navbar-static-top-eve">
      <div class="container_mainheader">
        <div class="navbar-header">
          <a href="#/main" class="navbar-brand" data-ng-click="blockui('/main')" style="padding-top: 5px;"><img class="hidden-xs" src="/themes/adminLTE/unl_data/img/mainLogo.png" style="width:104px;height:40px"></a>
		   <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse">
                <i class="fa fa-bars"></i>
            </button>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse pull-left" id="navbar-collapse">
          <ul class="nav navbar-nav">
            <!-- <li><a><font color="#5a8eb0">Community</font></a></li> -->
            <li data-ng-click="blockui('/main')" class="{{ (currentPath == '/main') ? activeClass : emptyClass}}"><a href="#/main"><i class="fa fa-home" aria-hidden="true"></i> 主页</a></li>
            <li class="dropdown {{ (currentPath == '/usermgmt') ? activeClass : emptyClass}}" style="{{ (role == 'admin' || role == 'teacher'  || role == 'referee') ? '' : 'display:none'}}">
              <a class="dropdown-toggle pointer" data-toggle="dropdown"><i class="fa fa-th-large" aria-hidden="true"></i> 管理 <span class="caret"></span></a>
              <ul class="dropdown-menu dropdown-main" role="menu">
                <li data-ng-click="blockui('/usermgmt')" class="{{ (currentPath == '/usermgmt') ? activeClass : emptyClass}}" 
				style="{{ (role == 'admin') ? '' : 'display:none'}}"><a href="#/usermgmt"><i class="fa fa-user-circle"></i> 用户管理</a></li>
				<li data-ng-click="blockui('/classmgmt')" class="{{ (currentPath == '/classmgmt') ? activeClass : emptyClass}}" 
				style="{{ (role == 'admin' || role == 'teacher') ? '' : 'display:none'}}"><a href="#/classmgmt"><i class="fa fa-user-circle"></i> 班级管理</a></li>
				<li data-ng-click="blockui('/matchmgmt')" class="{{ (currentPath == '/matchmgmt') ? activeClass : emptyClass}}"
				 style="{{ (role == 'admin' || role == 'referee') ? '' : 'display:none'}}"><a href="#/matchmgmt"><i class="fa fa-user-circle"></i> 比赛管理</a></li>
				
              </ul>
            </li>
			<li class="dropdown {{ (currentPath == '/syslog' || currentPath == '/sysstat') ? activeClass : emptyClass}}" style="{{ (role == 'admin') ? '' : 'display:none'}}">
              <a class="dropdown-toggle pointer" data-toggle="dropdown"><i class="fa fa-book" aria-hidden="true"></i> 系统 <span class="caret"></span></a>
              <ul class="dropdown-menu dropdown-main" role="menu">
                <li data-ng-click="blockui('/sysstat')" class="{{ (currentPath == '/sysstat') ? activeClass : emptyClass}}"><a href="#/sysstat"><i class="fa fa-building"></i> 系统状态</a></li>
                <li data-ng-click="blockui('/syslog')" class="{{ (currentPath == '/syslog') ? activeClass : emptyClass}}"><a href="#/syslog"><i class="fa fa-file-text-o"></i> 系统日志</a></li>
		<li ng-click="stopAll()"><a href=""><i class="fa fa-power-off"></i> 关闭所有设备</a></li>
              </ul>
            </li>

			     <!-- <li class="dropdown"> -->
              <!-- <a class="dropdown-toggle pointer" data-toggle="dropdown"><i class="fa fa-cog" aria-hidden="true"></i> 选项 <span class="caret"></span></a> -->
              <!-- <ul class="dropdown-menu dropdown-main" role="menu">                -->
                <!-- <li ng-click="permissions()"><a href=""><i class="fa fa-key"></i> 修复权限</a></li> -->
                <!-- <li ng-click="hidedevice()"><a href=""><i class="fa fa-indent"></i> 隐藏/显示无效设备</a></li> -->
                <!-- <li ng-click="iol()"><a href=""><i class="fa fa-id-card-o"></i> 生成IOL许可</a></li> -->
				<!-- <li><a href=""  data-ng-click="openModal('about')"><i class="fa fa-info-circle"></i> 关于</a></li> -->
				        <!-- <li><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=81177622&site=qq&menu=yes"><i class="fa fa-comments-o"></i> 在线支持</a></li> -->
              <!-- </ul> -->
            <!-- </li> -->

            <!-- <li class="dropdown"> -->
              <!-- <a class="dropdown-toggle pointer" data-toggle="dropdown"><i class="fa fa-globe" aria-hidden="true"></i> 语言 <span class="caret"></span></a> -->
              <!-- <ul class="dropdown-menu dropdown-main" role="menu"> -->
                <!-- <li ng-click="languageen()"><a href=""><i class="fa fa-id-card-o"></i> 英语</a></li> -->
                <!-- <li ng-click="languagecn()"><a href=""><i class="fa fa-id-card-o"></i> 中文（简体）</a></li> -->
              <!-- </ul> -->
            <!-- </li> -->

            <!-- <li class="dropdown"> -->
              <!-- <a class="dropdown-toggle pointer" data-toggle="dropdown"><i class="fa fa-download" aria-hidden="true"></i> 下载 <span class="caret"></span></a> -->
              <!-- <ul class="dropdown-menu dropdown-main" role="menu"> -->
                <!-- <li><a target="_blank" href="https://pan.baidu.com/s/1DItfuPewjJD0ZQIHHT-W7Q"><i class="fa fa-file"></i> EVE-NG Revision edition</a></li> -->
				<!-- <li><a target="_blank" href="/files/windows.zip"><i class="fa fa-file"></i> EVE-NG Tools</a></li> -->
              <!-- </ul> -->
            <!-- </li> -->
			<!-- <li class="dropdown"> -->
              <!-- <a class="dropdown-toggle pointer" data-toggle="dropdown"><i class="fa fa-address-card-o" aria-hidden="true"></i> 微信打赏 <span class="caret"></span></a> -->
              <!-- <ul class="dropdown-menu dropdown-main" role="menu"> -->
                <!-- <li><img src="/themes/adminLTE/unl_data/img/yangfeng.png" width="300" height="412"></li> -->
              <!-- </ul> -->
            <!-- </li> -->
          </ul>
        </div>
        <!-- /.navbar-collapse -->
        <!-- Navbar Right Menu -->
        <div class="navbar-custom-menu">
          <ul class="nav navbar-nav">
            <li>
              <a><span>{{ clock | date:'yyyy-M-dd &nbsp; HH:mm'}}</span></a>
            </li>

            <!-- User Account Menu -->
            <li class="dropdown user user-menu">
              <!-- Menu Toggle Button -->
              <a class="pointer" data-ng-click="openModal('edituser', username);">
                <!-- The user image in the navbar
                <img src="/themes/adminLTE/dist/img/user2-160x160.jpg" class="user-image" alt="User Image">-->
				        <i class="fa fa-user" aria-hidden="true"></i>
                <!-- hidden-xs hides the username on small devices so only the image appears. -->
                <span>{{username}}</span>
              </a>  
            </li>
			
            <li class="user user-menu">
          			<a href="" ng-click="logout()" >
          			<i class="fa fa-sign-out" aria-hidden="true"></i>
          			 <span class="hidden-xs"> 登出 </span>
          			</a>
            </li>
          </ul>
        </div>
        <!-- /.navbar-custom-menu -->
      </div>
      <!-- /.container-fluid -->
    </nav>
  </header>
